<?php
declare (strict_types = 1);

namespace app\api\controller;

use app\facade\UserBis;
use app\common\lib\Show as ShowLib;

class User
{
    // 查询列表信息
    public function index()
    {
        return ShowLib::success(UserBis::index());
    }

    // 新增
    public function save()
    {
        return ShowLib::success(UserBis::save());
    }

    // 查询单条记录
    public function read($id)
    {
        return ShowLib::success(UserBis::read($id));
    }

    // 更新
    public function update($id)
    {
        return ShowLib::success(UserBis::update($id));
    }

    // 删除
    public function delete($id)
    {
        return ShowLib::success(UserBis::delete($id));
    }
}
